package com.study.design.decorator;

public class Client {
    public static void main(String[] args) {
        Componet componet = new ConcreteComponet();
        //第一次修饰
        componet = new ConcreteDecoratorA(componet);
        //第二次修饰
        componet= new ConcreteDecoratorB(componet);
        //修饰后运行
        componet.operate();
    }
}
